home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-13
/
thesrc10.zip
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1992-08-12
|
8KB
|
202 lines
#
#########################################################################
#
# makefile for The Hessling Editor (THE)
#
#########################################################################
#
# This software is Copyright (c) 1991,1992 by Mark Hessling
#
# Permission is hereby granted to copy, distribute or otherwise
# use any part of this package as long as you do not try to make
# money from it or pretend that you wrote it. This copyright
# notice must be maintained in any copy made.
#
# Use of this software constitutes acceptance for use in an AS IS
# condition. There are NO warranties with regard to this software.
# In no event shall the author be liable for any damages whatsoever
# arising out of or in connection with the use or performance of this
# software. Any use of this software is at the user's own risk.
#
# If you make modifications to this software that you feel
# increases it usefulness for the rest of the community, please
# email the changes, enhancements, bug fixes as well as any and
# all ideas to me. This software is going to be maintained and
# enhanced as deemed necessary by the community.
#
# Mark Hessling
# M.Hessling@itc.gu.edu.au
#
VER = 1-0
#########################################################################
# Borland C++ 2.0 compiler on DOS
#########################################################################
SRC = c:/the
PROJ = the.exe
OBJ = obj
CC = bcc
CFLAGS = -O -w-aus -w-par -ml -DSYSVcurses -DCOLOR_CURSES -I$(SRC)
LD = tlink @dos-trc.rsp
CHMOD = echo done
XTRAOBJ= getopt.obj
MAN = manext.exe
MANLD = tlink manext+getopt+c:\borlandc\lib\wildargs;
#########################################################################
# MSC compiler on DOS
#########################################################################
#SRC = c:/the
#PROJ = the.exe
#OBJ = obj
#CC = cl
#CFLAGS = -O -AL -D__MSC__ -D__MSDOS__ -DSYSVcurses -DCOLOR_CURSES -DSTDC_HEADERS -I$(SRC)
#LD = link @dos-msc.rsp
#CHMOD = echo done
#XTRAOBJ= getopt.obj
#MAN = manext.exe
#MANLD = link manext+getopt+c:\c600\lib\setargv,,,c:\c600\lib\Llibce /CO /NOE /NOI /NOD;
#########################################################################
# MSC compiler on OS/2
#########################################################################
#SRC = c:/the
#PROJ = the.exe
#OBJ = obj
#CC = cl
#CFLAGS = -O -AL -D__MSC__ -D__OS2__ -DSYSVcurses -DCOLOR_CURSES -DSTDC_HEADERS -DUSE_OS2_H -I$(SRC)
#LD = link @os2-msc.rsp
#CHMOD = echo done
#XTRAOBJ= getopt.obj
#MAN = manext.exe
#MANLD = link manext+getopt+c:\c600\os2lib\setargv,,,c:\c600\os2lib\Llibce,manext.def /NOE /NOI /NOD;
#########################################################################
# BSD compiler on Sun
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = /usr/bin/cc
#CFLAGS = -g -DSUN -DBSD -I$(SRC)
#LD = $(CC) -o $(PROJ) $(OBJS) -lcurses -ltermcap
#CHMOD = chmod 755
#XTRAOBJ= bsd.o
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#########################################################################
# System V compiler on Sun
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = /usr/5bin/cc
#CFLAGS = -g -DSUN -DSYSVcurses -I$(SRC)
#LD = $(CC) -o $(PROJ) $(OBJS) -lcurses
#CHMOD = chmod 755
#XTRAOBJ=
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#########################################################################
# gcc compiler on Sun
#########################################################################
#SRC = ..
#PROJ = the
#OBJ = o
#CC = /usr/local/bin/gcc
#CFLAGS = -g -DSUN -DSYSVcurses -DPROTO -traditional -I$(SRC) -I/usr/5include
#LD = $(CC) -o $(PROJ) $(OBJS) -L/usr/5lib -lcurses
#CHMOD = chmod 755
#XTRAOBJ=
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#########################################################################
# System V compiler on System V R4 systems
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = /bin/cc
#CFLAGS = -g -DSYSV386 -DSYSVcurses -DCOLOR_CURSES -I$(SRC)
#LD = $(CC) -o $(PROJ) $(OBJS) -lcurses
#CHMOD = chmod 755
#XTRAOBJ=
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#########################################################################
# System V compiler on System V
#########################################################################
#SRC = .
#PROJ = the
#OBJ = o
#CC = /bin/cc
#CFLAGS = -g -DSYSV386 -DSYSVcurses -DCOLOR_CURSES -DNO_RENAME -I$(SRC)
#LD = $(CC) -o $(PROJ) $(OBJS) -lcurses
#CHMOD = chmod 755
#XTRAOBJ= rename.o
#MAN = manext
#MANLD = $(CC) -o $(MAN) manext.o
#########################################################################
#
#
# Object files
#
OBJ1 = comm1.$(OBJ) comm2.$(OBJ) comm3.$(OBJ) comm4.$(OBJ) comm5.$(OBJ) \
commsos.$(OBJ) default.$(OBJ) edit.$(OBJ) error.$(OBJ) \
nonansi.$(OBJ) show.$(OBJ) the.$(OBJ) util.$(OBJ)
OBJ2 = commutil.$(OBJ)
OBJ3 = getch.$(OBJ)
OBJ4 = $(XTRAOBJ)
OBJ5 = fnmatch.$(OBJ)
OBJ6 = directry.$(OBJ) file.$(OBJ)
OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6)
COMM = $(SRC)/comm?.c $(SRC)/commsos.c
#
#########################################################################
$(PROJ): $(OBJS)
$(LD)
$(CHMOD) $(PROJ)
#########################################################################
%.$(OBJ):$(SRC)/%.c
$(CC) $(CFLAGS) -c $(SRC)/$*.c
#########################################################################
$(OBJ1): $(SRC)/the.h
$(OBJ2): $(SRC)/the.h $(SRC)/command.h
$(OBJ3): $(SRC)/getch.h
$(OBJ5): $(SRC)/the.h $(SRC)/fnmatch.h
$(OBJ6): $(SRC)/directry.h
#
#########################################################################
manual: $(MAN) $(COMM)
manext -o the.man $(SRC)/OVERVIEW $(COMM)
#
$(MAN): $(XTRAOBJ) manext.$(OBJ)
$(MANLD)
$(CHMOD) $(MAN)
#########################################################################
zoosrc:
zoo a the_$(VER)s.zoo COPYING README.src README.exc OVERVIEW
zoo a the_$(VER)s.zoo the.c the.h comm*.c util.c bsd.c command.h default.c directry.c
zoo a the_$(VER)s.zoo directry.h edit.c error.c file.c fnmatch.c fnmatch.h getch.c
zoo a the_$(VER)s.zoo getch.h getopt.c memtrack.h nonansi.c show.c vax.c key.h trace.c
zoo a the_$(VER)s.zoo *.hlp *.rsp *.def makefile manext.c make.exe
#########################################################################
zipsrc:
zip the_$(VER)s.zip COPYING README.src README.exc OVERVIEW
zip the_$(VER)s.zip the.c the.h comm*.c util.c bsd.c command.h default.c directry.c
zip the_$(VER)s.zip directry.h edit.c error.c file.c fnmatch.c fnmatch.h getch.c
zip the_$(VER)s.zip getch.h getopt.c memtrack.h nonansi.c show.c vax.c key.h trace.c
zip the_$(VER)s.zip *.hlp *.rsp *.def makefile manext.c make.exe
#########################################################################
zoodos:
zoo a thedos_e.zoo COPYING README.exc the.exe the.man dos.hlp
#########################################################################
zipdos:
zip thedos_e.zip COPYING README.exc the.exe the.man dos.hlp
#########################################################################
zooos2:
zoo a theos2_e.zoo COPYING README.exc the.exe the.man os2.hlp
#########################################################################
zipos2:
zip theos2_e.zip COPYING README.exc the.exe the.man os2.hlp
#########################################################################